export const getUserInfo = () => {
    try {
        return JSON.parse(
            localStorage.getItem('bwx-user-info')
        )
    } catch (error) {
        return {}
    }
}
export const setUserInfo = (value) => {
    if (typeof value === 'object') {
        localStorage.setItem('bwx-user-info', JSON.stringify(value))
    }
}

export const removeUserInfo = () => {
    localStorage.removeItem('bwx-user-info')
}